<template>
  <div>
    <h3>这个是子组件C</h3>
  </div>
</template>
<script>
import eventBus from '@/util/eventBus.js';

export default {
  created() {
    eventBus.on(eventBus.TYPES.EVENT1.ADD.INVOKE, (data) => {
      console.log(data);
    })
  },
  beforeDestroy() {
    eventBus.off(eventBus.TYPES.EVENT1.ADD.INVOKE);
  }
}
</script>
